package cn.deathgun.dcswebspringboot.mapper

import cn.deathgun.dcswebspringboot.entity.UnittypeEntity
import com.baomidou.mybatisplus.core.conditions.Wrapper
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.baomidou.mybatisplus.core.metadata.IPage
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Select
import org.springframework.data.repository.query.Param
import java.io.Serializable

@Mapper
interface UnittypeMapper: BaseMapper<UnittypeEntity>{

    @Select("select * from unittype where typeName = #{typeName}")
    fun selectByTypeName(@Param("typeName") typeName:String): UnittypeEntity

    @Select("select typeId from unittype where typeName = #{typeName}")
    fun selectTypeByTypeName(@Param("typeName") typeName:String): Int

    override fun insert(entity: UnittypeEntity?): Int

    override fun deleteById(id: Serializable?): Int

    override fun deleteByMap(columnMap: MutableMap<String, Any>?): Int {
        TODO("Not yet implemented")
    }

    override fun deleteBatchIds(idList: MutableCollection<*>?): Int {
        TODO("Not yet implemented")
    }

    override fun selectById(id: Serializable?): UnittypeEntity {
        TODO("Not yet implemented")
    }

    override fun selectBatchIds(idList: MutableCollection<out Serializable>?): MutableList<UnittypeEntity> {
        TODO("Not yet implemented")
    }

    override fun selectByMap(columnMap: MutableMap<String, Any>?): MutableList<UnittypeEntity> {
        TODO("Not yet implemented")
    }

    override fun <P : IPage<MutableMap<String, Any>>?> selectMapsPage(
        page: P,
        queryWrapper: Wrapper<UnittypeEntity>?
    ): P {
        TODO("Not yet implemented")
    }

    override fun <P : IPage<UnittypeEntity>?> selectPage(page: P, queryWrapper: Wrapper<UnittypeEntity>?): P {
        TODO("Not yet implemented")
    }

    override fun selectObjs(queryWrapper: Wrapper<UnittypeEntity>?): MutableList<Any> {
        TODO("Not yet implemented")
    }

    override fun selectMaps(queryWrapper: Wrapper<UnittypeEntity>?): MutableList<MutableMap<String, Any>> {
        TODO("Not yet implemented")
    }

    override fun selectList(queryWrapper: Wrapper<UnittypeEntity>?): MutableList<UnittypeEntity> {
        TODO("Not yet implemented")
    }

    override fun selectCount(queryWrapper: Wrapper<UnittypeEntity>?): Long {
        TODO("Not yet implemented")
    }

    override fun update(entity: UnittypeEntity?, updateWrapper: Wrapper<UnittypeEntity>?): Int {
        TODO("Not yet implemented")
    }

    override fun updateById(entity: UnittypeEntity?): Int {
        TODO("Not yet implemented")
    }

    override fun delete(queryWrapper: Wrapper<UnittypeEntity>?): Int {
        TODO("Not yet implemented")
    }

    override fun deleteById(entity: UnittypeEntity?): Int {
        TODO("Not yet implemented")
    }

}